<!-- $Id: account_list.htm 14928 2008-10-06 09:25:48Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<script type="text/javascript" src="../data/assets/js/calendar.php?lang={$cfg_lang}"></script>
<link href="../data/assets/js/calendar/calendar.css" rel="stylesheet" type="text/css" />

<!--
<div class="form-div">
<form method="post" action="account_log.php?act=list&user_id={$smarty.get.user_id}" name="searchForm">
  <select name="account_type" onchange="document.forms['searchForm'].submit()">
    <option value="" {if $account_type eq ''}selected="selected"{/if}>{$lang.all_account}</option>
    <option value="user_money" {if $account_type eq 'user_money'}selected="selected"{/if}>{$lang.user_money}</option>
    <option value="frozen_money" {if $account_type eq 'frozen_money'}selected="selected"{/if}>{$lang.frozen_money}</option>
    <option value="rank_points" {if $account_type eq 'rank_points'}selected="selected"{/if}>{$lang.rank_points}</option>
    <option value="pay_points" {if $account_type eq 'pay_points'}selected="selected"{/if}>{$lang.pay_points}</option>
  </select>
  <strong>{$lang.label_user_name}</strong>{$user.user_name}
  <strong>{$lang.label_user_money}</strong>{$user.formated_user_money}
  <strong>{$lang.label_frozen_money}</strong>{$user.formated_frozen_money}
  <strong>{$lang.label_rank_points}</strong>{$user.rank_points}
  <strong>{$lang.label_pay_points}</strong>{$user.pay_points}
  </form>
</div>
-->
<div>
    
    <form action="drp.php?act=export&from={$smarty.get.act}" method="post" name="listForm">
      <input name="start_time" type="text" id="start_time" size="22" value='{$stime}' readonly="readonly" />
      <input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('start_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn1');" value="{$lang.btn_select}" class="button"/>
      <input name="end_time" type="text" id="end_time" size="22" value='{$etime}' readonly="readonly" />
      <input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('end_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn2');" value="{$lang.btn_select}" class="button"/>  
      <input type="submit" value="{$lang.download}" class='button' onclick="this.form.target = '_blank'"/>
    </form>
    
</div>
<div class="form-div">
  <form action="drp.php?act=users" method="post" name="searchForm"> 
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />  
    &nbsp;用户名&nbsp;
	<input type="text" name="username" size="8" />&nbsp;	
    &nbsp;真实姓名&nbsp;
	<input type="text" name="user_name" size="8" />&nbsp;
	&nbsp;店铺名称&nbsp;
	<input type="text" name="drp_name" size="8" />&nbsp;
	手机号&nbsp;
	<input type="text" name="shop_mobile" size="10" />&nbsp;&nbsp;
	<input type="submit" value="{$lang.button_search}" />
  </form>
</div>

<form method="post" action="" name="listForm">
<div class="list-div" id="listDiv">
{/if}  
<table cellpadding="4" cellspacing="1">
    <tr>
        <th style="">{$lang.cate_id}</th>
        <th style="">{$lang.user.user_name}</th>
        <th style="">{$lang.user.real_name}</th>
        <th style="">{$lang.user.shop_name}</th>
        <th style="">{$lang.user.shop_mobile}</th>
        <th style="">{$lang.user.shop_qq}</th>
        <th style="">{$lang.user.create_time}</th>
        <th style="">{$lang.user.open}</th>
        <th style="">{$lang.handle}</th>
    </tr>
    {foreach from=$list item=li}
    <tr>
        <td>{$li.id}</td>
        <td>{$li.user_name}</td>
        <td>{$li.real_name}</td>
        <td>{$li.shop_name}</td>
        <td>{$li.shop_mobile}</td>
        <td>{$li.shop_qq}</td>
        <td>{$li.create_time}</td>
        <td>{if $li.open eq 1}{$lang.user.open_true}{else}{$lang.user.open_false}{/if}</td>
        <td>
            <a href="drp.php?act=user_order&id={$li.user_id}"  title="{$lang.view}"><img src="images/icon_view.gif" width="16" height="16" border="0"></a>
            <a href="drp.php?act=user_edit&id={$li.id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
            <!--<a href="javascript:confirm('{$lang.change}') ? location.href='drp.php?act=user_change&id={$li.id}&open={$li.open}' :''" title="{$lang.change}"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>-->
        </td>
    </tr>
    {/foreach}
</table>
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>

{if $full_page}
</div>
</form>

<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
      // 开始检查订单
      startCheckOrder();
  }
  {/literal}
  //-->
</script>
{include file="pagefooter.htm"}
{/if}